<?php
// Require the configration file before any PHP code
require_once(ABSPATH . "includes/config.inc.php");
// Require the database file before any PHP code
require_once(ABSPATH . "includes/db.inc.php");
// Require the function file before any PHP code
require_once(ABSPATH . "includes/function.inc.php");
// Require the library file before any PHP code
require_once(ABSPATH . "includes/zeus_lib.inc.php");
// Check if login
if (isset($_GET['action']) && 'logout' == $_GET['action']) {
    do_action('redirect', '/index.php?action=logout');
} elseif (!isset($_SESSION['valid']) || !$_SESSION['valid']) {
    do_action('redirect', '/index.php?action=logout');
} else {
    zeus_do_nothing();
}
?>